<template>
	<view class="item" @click="navigate" :data-typeUrl="item.typeUrl">
		<image :src="item.icon" v-if="item.icon" mode=""></image>
		<view class="show" :class="[lastClass]">
			<view class="cont-show">
				<view class="">
					{{item.title}}
				</view>
				<view class="text-grey" v-if="item.desc">
					{{item.desc}}
				</view>
			</view>
			<text class="lg text-gray" :class="'cuIcon-right'"></text>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			item: {
				type: Object,
				default: null
			},
			lastClass:{
				type:String,
				default:''
			}
		},
		methods:{
			navigate(e){
				this.$emit('navigate',e.currentTarget.dataset.typeurl)
			}
		}
	}
</script>

<style>
	.item {
		width: 100%;
		height: 100rpx;
		display: flex;
		align-items: center;
		box-sizing: border-box;
		padding: 0 22rpx;
	}

	.content .item:last-child .show {
		border-bottom: none
	}

	.item image {
		margin-right: 20rpx;
		width: 44rpx;
		height: 44rpx;
	}

	.item .show {
		flex: 1;
		display: flex;
		height: 88rpx;
		border-bottom: solid 1rpx #efefef;
		box-sizing: border-box;
		justify-content: space-between;
		align-items: center;
	}

	.item .show>view {
		flex: 1;
	}

	.item .cont-show {
		display: flex;
		justify-content: space-between;
		align-items: center;
		line-height:100rpx;

	}

	.item .cont-show>view:nth-child(1) {
		font-size: 30rpx;
		color: #333333;
	}

	.item .cont-show>view:nth-child(2) {
		font-size: 26rpx;
	}
	
	.show.active{
		border-bottom: none !important;
	}
</style>
